from pynput.mouse import Button
from pynput.mouse import Controller as mController
from pynput.keyboard import Key
from pynput.keyboard import Controller as kController
import time

mouse = mController()
keyboard = kController()

mouse.position = (916, 142)
mouse.move(0, 0)

sleep(6)
mouse.click(Button.left, 1)
sleep(6)

with keyboard .pressed(Key.ctrl_l):
 keyboard.press('a')
 keyboard.release('a')
